package bussinessService.impl;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import module.Customers;
import utils.DateUtil;
import bussinessService.customersBussinessService;
import domain.vo.CustomerQueryObject;
import domain.vo.CustomerVO;
import domain.vo.queryObject;

public class CustomersBussinessServiceImpl  implements customersBussinessService{

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#deleteT(java.lang.Object)
	 */
	public void deleteT(Customers t) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#getAll()
	 */
	public List<CustomerVO> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	/* (非 Javadoc) 
	* <p>Title: deleteT</p> 
	* <p>Description: </p> 
	* @param id
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#deleteT(int) 
	*/ 
	
	

	public void deleteT(int id) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#getById(java.lang.String)
	 */
	public Customers getById(String id) throws SQLException {

		return customersService.getById(id);
	}

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#merageObject(java.lang.Object)
	 */
	public void merageObject(Customers customers) throws SQLException {
		if(customers.getCusId() == 0) {
			customersService.insertObject(customers);
		} else {
			customersService.updateObject(customers);
		}
	}

	public int countByQueryObject(queryObject queryObject) throws SQLException {
		return customersService.countByQueryObject(queryObject);
	}

	public List<CustomerVO> getObjectByQueryObject(queryObject queryObject) throws SQLException {
		return null;
	}

}
